#include <iostream>
#include <string>

using namespace std;

class stu
{
private:
    
public:
    string name ;
    int id;
    string Class;
    int soc;

    void show_soc(void)
    {
        cout << name << "的成绩 = " << soc << endl;
    }
};


int main(int argc, char const *argv[])
{
    stu s_arr[3] = {
        {.name = "张三" , .id = 1 , .Class = "1班" , .soc = 59},
        {.name = "李四" , .id = 2 , .Class = "1班" , .soc = 59},
        {.name = "王五" , .id = 3 , .Class = "1班" , .soc = 59},
    };

    for (size_t i = 0; i < 3; i++)
    {
        s_arr[i].show_soc();
    }
    
    return 0;
}
